package com.platform.service;

import com.baomidou.mybatisplus.mapper.Condition;
import com.platform.dao.ApiCallBillMapper;
import com.platform.entity.ApiCallBillVo;
import com.platform.utils.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Service接口
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-05-01 23:09:45
 */
@Service
public class ApiCallBillService {
    @Autowired
    private ApiCallBillMapper apiCallBillMapper;

    public List<ApiCallBillVo> selectList(Map<String, Object> params) {
        return apiCallBillMapper.queryList(params);
    }

    public void save(ApiCallBillVo info) {
        apiCallBillMapper.save(info);
    }

    public ApiCallBillVo selectOne(Long id) {
        return apiCallBillMapper.queryObject(id);
    }

    public void update(ApiCallBillVo info) {
        apiCallBillMapper.update(info);
    }

    public Long findSumTalkTimes(Long userId) {
        return apiCallBillMapper.findSumTalkTimes(userId);
    }

    public int queryTotal(Query query) {
        return apiCallBillMapper.queryTotal(query);
    }

}
